﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="frmCasosEspeciales.aspx.cs" Inherits="UI.DireccionAcademica.frmCasosEspeciales" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="panel1" runat="server">
        <ContentTemplate>
            <table style="width: 902px">
                <tr>
                    <td>
                        <table class="BTabla">
                            <tr>
                                <td>
                                    <table class="style1">
                                        <tr>
                                            <td class="filaTabla" colspan="9">
                                                Consulta de Casos Especiales
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style2">
                                            </td>
                                            <td class="style6">
                                            </td>
                                            <td class="style14">
                                            </td>
                                            <td class="style8">
                                            </td>
                                            <td class="style10">
                                            </td>
                                            <td class="style12">
                                            </td>
                                            <td class="style2">
                                            </td>
                                            <td class="style2">
                                            </td>
                                            <td class="style2">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td class="style16">
                                                <asp:Label ID="Label1" runat="server" Text="Semestre"></asp:Label>
                                            </td>
                                            <td class="style15">
                                                <asp:DropDownList ID="ddlSemestre" runat="server" Width="98px">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="style9">
                                                <asp:Label ID="Label2" runat="server" Text="Especialidad"></asp:Label>
                                            </td>
                                            <td class="style17">
                                                <asp:DropDownList ID="ddlEspecialidad" runat="server" Width="256px" 
                                                    onselectedindexchanged="ddlEspecialidad_SelectedIndexChanged">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="style13">
                                                <asp:Label ID="Label3" runat="server" Text="Ciclo" Visible="false"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlCiclo" runat="server" Width="48px" Visible="false">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                <asp:Button ID="Button1" runat="server" Height="34px" Text="Buscar" Width="88px"
                                                    OnClick="Button1_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnNuevo" runat="server" Height="32px" Text="Nuevo" Width="88px"
                                                    OnClick="btnNuevo_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style13">
                                                &nbsp;
                                            </td>
                                            <td class="style11">
                                                <asp:Label ID="Label4" runat="server" Text="Código/Nombres"></asp:Label>
                                            </td>
                                            <td class="style10" colspan="3">
                                                <asp:TextBox ID="txtNombre" runat="server" Width="257px"></asp:TextBox>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td class="style16" colspan="4">
                                                <asp:Label ID="lblMensaje" runat="server" ForeColor="Red" Style="font-family: Arial"></asp:Label>
                                            </td>
                                            <td class="style13">
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>                       
                    </td>
                </tr>
            </table>
            <table style="width: 876px">
                <tr>
                    <td align="center" class="style3">
                        <asp:GridView ID="grvCasosEspeciales" runat="server" 
                            Caption="Listado de Casos Especiales" DataKeyNames="Codigo,semestre"
                            AutoGenerateColumns="False" Width="750px" AllowPaging="True" 
                            OnPageIndexChanging="grvCasosEspeciales_PageIndexChanging" 
                            onselectedindexchanged="grvCasosEspeciales_SelectedIndexChanged" 
                            onrowdeleting="grvCasosEspeciales_RowDeleting" PageSize="15">
                            <Columns>
                                <asp:BoundField DataField="Semestre" HeaderText="Semestre"></asp:BoundField>
                                <asp:BoundField DataField="Codigo" HeaderText="Código"></asp:BoundField>
                                <asp:BoundField DataField="Apellidos y Nombres" HeaderText="Apellidos y Nombres">
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="DESESP" HeaderText="Especialidad">
                                    <ItemStyle HorizontalAlign="left" />
                                </asp:BoundField>
                                <asp:CommandField HeaderText="Editar" SelectText="Editar" ShowSelectButton="True" />
                                <asp:CommandField HeaderText="Eliminar" DeleteText="Eliminar"  ShowDeleteButton="True"/>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--<asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="panel1">
        <ProgressTemplate>
            <div id="BackGround">
                <div id="Progress">
                    <h6>
                        <p style="text-align: center">
                            <b>Procesando Datos,espere porfavor...</p>
                        <p style="text-align: center">
                            <b>
                            <img alt="loading" class="style66" 
                                src="../Imagenes/Gif/cargando.gif" />
                            <br />
                            </b>
                        </p>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                        <h6>
                        </h6>
                    </h6>
                </div>
            </div>
            </b>
        </ProgressTemplate>
    </asp:UpdateProgress>--%>

    <asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="panel1" DisplayAfter="0">
    <ProgressTemplate>
        <div style="background-color: Gray; filter:alpha(opacity=60); opacity:0.60; width: 100%; top: 0px; left: 0px; position: fixed; height: 100%;">
        </div>
          <div style="margin:auto;
              font-family:Trebuchet MS;
              filter: alpha(opacity=100);
              opacity: 1;
              font-size:small;
              vertical-align: middle;
              top: 45%;
              position: fixed;
              right: 45%;
              color: #275721;
              text-align: center;
              background-color: White;
              height: 100px;
              ">
                <table style=" background-color: White; font-family: Sans-Serif; text-align: center; border: solid 1px #275721; color: #275721; width: inherit; height: inherit; padding: 15px;">
                <tr>
                <td style=" text-align: inherit;"><img src="../Imagenes/Gif/cargando.gif" alt="Loading"  /></td>
                <td style=" text-align: inherit;"><span style="font-family: Sans-Serif; font-size: medium; font-weight: bold; font">Cargando...</span></td>
                </tr>
                </table>
        </div>
    </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
